import { FetchAgent } from '@/public/services/';

import ApiConfig from '../config/api';

export default {};

// 获取商品价格列表
export const pricingSystemTable = (params: any) => {
    return FetchAgent.sendPost({
        url: `${ApiConfig.getApiPrefix}/goods-franchise-pricing/labs/CountryService/create`,
        headers: {
            "Content-Type": "application/json",
        },
        body: {
            ...params,
        },
    });
};


// 上传
// export const upload = (params: any) => {
//     return FetchAgent.sendPost({
//         url: `${ApiConfig.getApiPrefix}/labs/CountryService/create`,
//         body: {
//             ...params,
//         },
//     });
// };

// 调价记录列表
export const franchiseoperationlog = (params: any) => {
    return FetchAgent.sendPost({
        url: `${ApiConfig.getApiPrefix}/goods-franchise-pricing/franchiseoperationlog/getFranchiseOperationLogList`,
        body: {
            ...params,
        },
    });
};

// 获取所有品类
export const getCategoryList = (params?: any) => {
    return FetchAgent.sendPost({
        url: `${ApiConfig.getApiPrefix}/goods-franchise-pricing/category/getCategoryList`,
        body: {
            ...params,
        },
    });
};

// // 批量导入商品
// export const importgoods = (params?: any) => {
//     return FetchAgent.sendPost({
//         url: `${ApiConfig.getApiPrefix}/goods-franchise-pricing/importgoods/checkAndSave`,
//         body: {
//             ...params,
//         },
//     });
// };


